<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>伪元素选择器--字体图标</title>
    <style>
        @font-face {
  font-family: 'icomoon';
  src:  url('fonts/icomoon.eot?hsw8do');
  src:  url('fonts/icomoon.eot?hsw8do#iefix') format('embedded-opentype'),
    url('fonts/icomoon.ttf?hsw8do') format('truetype'),
    url('fonts/icomoon.woff?hsw8do') format('woff'),
    url('fonts/icomoon.svg?hsw8do#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}
        div{
            position: relative;
            width: 200px;
            height: 35px;
            border: 1px solid red;
        }
        div::after{
            position: absolute;
            top: 10px;
            right: 10px;
            font-family: 'icomoon';
            /* 方法一 */
            /* content: ''; */
            /* 方法二 */
            content: '\e908';
            color: lightblue;
            font-size: 18px;

        }
    </style>
</head>
<body>
    <div>

    </div>
</body>
</html>